package org.jeecg.modules.demo.moenydata.uitils;

import org.jeecg.modules.demo.pointcount.entity.OnlineData;

/**
 * @Author yw
 * @Date 2021/3/26 18:21
 */
public class JsonUtil {

    /**
     * 返回onlinedata  json格式
     * @return
     */
    public static String returnJson(OnlineData onlineData){
        String jsonStr=onlineData.getId()+":{" +
                "regTime:" +"\""+onlineData.getRegTime()+"\""+
                "totalTime:" +"\""+onlineData.getDuration()+"\""+
                "lastTime:" +"\""+onlineData.getTime()+"\""+
                "}";

        return jsonStr;
    }
}
